


var informHandler = {
  timer: null,

  start: function (msg) {
    var inform  = document.querySelector('.inform-content')
    inform.innerHTML = msg
    inform.style.color = '#333'
    var count = 0
    var that = this
    this.timer = setInterval(function () {
      count++
      if (count <= 10) {
        inform.style.opacity = count % 2 == 0 ? 1 : 0
      } else if (count == 20) {
        inform.innerHTML = '当前没有新的动态'
        inform.style.color = '#999'
        clearInterval(that.timer)
      }
      
    }, 400)
  }
}